<?php
	$username = 'iamalone';
	$pattern = '/^[a-zA-Z0-9_.`~!@#$%^&*()]{6,50}$/';
	echo preg_match($pattern, $username);
?>